package com.example.client;

//模型

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class ClientData {
    private final StringProperty date;
    private final StringProperty time;
    private final StringProperty temperature;
    private final StringProperty humidity;
    private final StringProperty co2;
    private final StringProperty lux;

    /**
     * Default constructor.
     */
    public ClientData() {
        this(null, null, null, null, null, null);
    }

    public ClientData(String date, String time, String temperature, String humidity, String co2, String lux) {
        this.date = new SimpleStringProperty(date);
        this.time = new SimpleStringProperty(time);
        this.temperature = new SimpleStringProperty(temperature);
        this.humidity = new SimpleStringProperty(humidity);
        this.co2 = new SimpleStringProperty(co2);
        this.lux = new SimpleStringProperty(lux);
    }

    public String getDate() {
        return date.get();
    }

    public StringProperty dateProperty() { return date; }

    public void setDate(String date) {
        this.date.set(date);
    }

    public String getTime() {
        return time.get();
    }

    public StringProperty timeProperty() {
        return time;
    }

    public void setTime(String time) {
        this.time.set(time);
    }

    public String getTemperature() {
        return temperature.get();
    }

    public StringProperty temperatureProperty() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature.set(temperature);
    }

    public String getHumidity() {
        return humidity.get();
    }

    public StringProperty humidityProperty() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity.set(humidity);
    }

    public String getCo2() {
        return co2.get();
    }

    public StringProperty co2Property() {
        return co2;
    }

    public void setCo2(String co2) {
        this.co2.set(co2);
    }

    public String getLux() {
        return lux.get();
    }

    public StringProperty luxProperty() {
        return lux;
    }

    public void setLux(String lux) {
        this.lux.set(lux);
    }

}
